package day1701;

import java.util.HashMap;
import java.util.Scanner;

public class day170101 {
    public static void main(String[] args) {
        HashMap<Character,Integer> a = new HashMap<>();
        String b = new Scanner(System.in).nextLine();
        for (int i =0;i<b.length();i++){
            char c = b.charAt(i);
            if(a.get(c)==null)
                a.put(c,1);
            else
                a.put(c,a.get(c)+1);
        }
        System.out.println(a);
    }

}
